package com.tcm.doctor.service;

import com.tcm.doctor.domain.dto.DoctorAccountDto;
import com.tcm.doctor.domain.vo.DoctorAccountVo;

import java.math.BigDecimal;

public interface DoctorAccountService {

    /**
     * 查询单条信息
     * @param id
     * @return Doctor
     */
    DoctorAccountVo findById(Long id);

    /**
     * 获得医生信息
     * @param userId
     * @return Doctor
     */
    DoctorAccountVo findByUserId(Long userId);

    /**
     * 新增信息
     * @param doctorAccountDto
     */
    void save(DoctorAccountDto doctorAccountDto) throws Exception;


    /**
     * 永久删除
     * @param id
     */
    void deleteDoctor(Long id);

    void addReward(Long userId, BigDecimal price) throws Exception;
}
